package org.zookeeper.examples.command.overview;

import java.io.IOException;
import org.zookeeper.examples.command.overview.component.Executor;

/**
 * 客户端监视znode变化示例, 根据官网示例修改而来
 *
 * @author slydm
 */
public class WatchDemo {

  public static void main(String[] args) throws IOException, InterruptedException {

    String hostPort = "localhost:2181";
    String znode = "/watch";
    Executor executor = new Executor(hostPort, znode);
    executor.run();
  }

}
